package com.itheima.exer.homework.hw1009;

import java.io.*;

public class CopyJavaTest {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader(new File("exercises\\Copy.java")));
        BufferedWriter bw = new BufferedWriter(new FileWriter(new File("exercises\\Copy1112.java")));
        int read = br.read();
        System.out.println(read);
        System.out.println((char)read);
        char[] chars = new char[102400];
        int len;
        while ((len = br.read(chars)) != -1){
            bw.write(chars);
        }
        br.close();
        bw.close();
    }
}
